Skip to content

Refactor Archiver Client for large requests#196

Open
jacomago wants to merge 7 commits intoChannelFinder:masterfrom
jacomago:archclient-large-input
Open

Refactor Archiver Client for large requests#196
jacomago wants to merge 7 commits intoChannelFinder:masterfrom
jacomago:archclient-large-input

Conversation

@jacomago
Copy link
Contributor

@jacomago jacomago commented Feb 11, 2026

Refactored the Archiver Client to make sure it can stream large requests.
Swapped to the Spring boot RestClient
Added a test ArchiverServiceTest
Reduced the scope of the AAProcessorIT tests to mock the ArchiverService

For future I'd like to use openapi definition from the archiver to generate a client, maybe that's a good codathon ticket.

@shroffk
Copy link
Collaborator

shroffk commented Feb 11, 2026

This does sound like a good codeathon task

@jacomago jacomago force-pushed the archclient-large-input branch from f0f092d to 1edb6fe Compare February 11, 2026 16:04
@jacomago jacomago marked this pull request as draft February 12, 2026 07:16
@jacomago jacomago force-pushed the archclient-large-input branch from 1edb6fe to e9679d1 Compare February 12, 2026 15:01
@jacomago jacomago self-assigned this Feb 12, 2026
@jacomago jacomago marked this pull request as ready for review February 12, 2026 16:08
List<String> failedPvs = new ArrayList<>();
for (int i = 0; i < response.size(); i++) {
Map<String, String> result = response.get(i);
String pv = (i < pvs.size()) ? pvs.get(i) : "UNKNOWN_PV";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, what are we hedging against here, where response.size > pvs.size?

}

@Test
void testGetStatusesInvalidResponse() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick, but test naming is a bit inconsistent: for the previous two you only described action, where you here now also describe the consequence

Copy link
Collaborator

@georgweiss georgweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had some Spring Boot related comments....

@jacomago jacomago force-pushed the archclient-large-input branch from e9679d1 to 22427d3 Compare February 13, 2026 17:09
This was used to distinguish support for getting status via post or query
Now (from an earlier merge) we explicitly configure it instead.
@jacomago jacomago force-pushed the archclient-large-input branch 3 times, most recently from 8ed48ac to 3eac53e Compare February 16, 2026 14:04
georgweiss
georgweiss previously approved these changes Feb 16, 2026
Adds Validation checking of responses from ArchiveAction s
Adds a test for ArchiverService with some example responses from a live archiver
@jacomago jacomago force-pushed the archclient-large-input branch from 2db924e to 82ae89d Compare February 16, 2026 15:01
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants